package com.atguigu.srb.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    OK(200,"SUCCESS"),
    FAIL(-1 , "UNKNOW ERROR"),

    ACCOUNT_ERROR(301 , "账号错误"),
    PASSWORD_ERROR(302 , "密码错误"),
    UPDATE_DATA_ERROR(303 , "更新数据缺少必须的ID"),
    QUERY_DATA_ERROR(304 , "查询数据失败"),
    ;
    private Integer code;
    private String message;
    private ResultCodeEnum(Integer code , String message){
        this.code = code ;
        this.message = message;
    }
}
